<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    原文.html <input type="text" id="one"> + <input type="text" id="two"> = <b id="wenhao">?</b> <button id="sum">求和</button>
</body>
<script>
    function sb() {
        var one = document.getElementById('one')
        var two = document.getElementById('two')
        var wenhao = document.getElementById('wenhao')
        var sum = document.getElementById('sum')
        sum.onclick = function (){
            wenhao.innerText = (one.value * 1)+(two.value * 1)
        }
    }
    sb()
</script>
</html>